﻿using Inovout.Cloud.Data.Blob.Models;
using Inovout.Cloud.Storage.Models;
using Inovout.Repositories;
using NHibernate.Criterion;


namespace Inovout.Cloud.Storage.Repositories
{
    public class ObjectRepository: DataObjectRepository<Object>
    {
        public Object FindByFile(File file)
        {
            return base.Find(Restrictions.Eq("File.Id",(object)file.Id));
        }
    }
}
